<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>

<link href='/flower/Public/Member/css/global.css' rel='stylesheet' type='text/css' />


<!-- 整体页面布局 -->
<link href='/flower/Public/Member/css/main.css' rel='stylesheet' type='text/css' />

<!-- 基础js调用 -->
<script type='text/javascript' src='/flower/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/flower/Public/Member/js/global.js'></script>


<link href='/flower/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/flower/Public/Member/js/wechat.js'></script>
<script type="text/javascript" src="/flower/Public/Member/js/operamasks-ui.min.js"></script>
<script type="text/javascript" src="/flower/Public/Member/js/coupon.js"></script>
<script type='text/javascript'>
var web_domain='/flower';
var static_domain='/flower';
var img_domain='/flower';
var _PUBLIC_ = '/flower/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

<script type="text/javascript" src="/flower/Public/Member/js/car_repair.js"></script>
<link href="/flower/Public/Member/css/datepicker.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/flower/Public/Member/js/datepicker.js"></script>
<script language="javascript">
	$(document).ready(coupon_obj.coupon_add);
</script>

</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
				<li class="<?php if((ACTION_NAME) == "coupon"): ?>cur<?php endif; ?>"><a href="<?php echo U('Coupon/coupon');?>">优惠券列表</a></li>
				<!-- <li class="<?php if((ACTION_NAME) == "review"): ?>cur<?php endif; ?>"><a href="<?php echo U('Review/review');?>">评论列表</a></li> -->
				</ul>
			</div>

		
		

			
    <form id="coupon_form"  class="r_con_form">
    
    	<div class="rows"><>此处添加<?php echo ($type); ?>优惠券</div>
    
	    <div class="rows">
	        <label>优惠券名称<span class="fc_red">*</span></label>
	        <span class="input">
	        <input name="coupon_name" value="<?php echo ($coupon["name"]); ?>" class="form_input" size="35" maxlength="100"  type="text" notnull> </span>
	        <div class="clear"></div>
	    </div>
	    
	    <div class="rows">
	        <label>优惠券价值<span class="fc_red">*</span></label>
	        <span class="input">
	        <input name="coupon_price" value="<?php echo ($coupon["price"]); ?>" class="form_input" size="35" maxlength="100"  type="text" notnull> </span>
	        <div class="clear"></div>
	    </div>
	    
	   <!--  <div class="rows">
	        <label>优惠券数量<span class="fc_red">*</span></label>
	        <span class="input">
	        <input name="coupon_num" value="<?php echo ($list["coupon_num"]); ?>" class="form_input" size="35" maxlength="100"  type="text" notnull> </span>
	        <div class="clear"></div>
	    </div> -->
	    
        <div class="rows">
	        <label>优惠券规则<span class="fc_red">*</span></label>
	        <span class="input">满
	        <input name="coupon_rule" value="<?php echo ($coupon["limit"]); ?>" class="form_input" size="5" maxlength="100"  type="text" notnull>元后可用 </span>
	        <div class="clear"></div>
	    </div>
	    
	    <div class="rows">
	        <label>兑换积分</label>
	        <span class="input">使用
	        <input name="integral" value="<?php echo ($coupon["needintegral"]); ?>" class="form_input" size="5" maxlength="100"  type="text" >积分可兑换 </span>
	        <div class="clear"></div>
	    </div>
	    
	<!--     <div class="rows" id="img_msg_row">
				<label>关注赠送</label> <span class="input">
				<input type="checkbox" value="1" <?php if(($list["firstconcern"]) == "1"): ?>checked<?php endif; ?> name="firstconcern" /><span
					class="tips">选择（选择后，当当用户首次关注时赠送该优惠券）</span></span>
				<div class="clear"></div>
		</div> -->
		
        <div class="rows">
            <label></label>
            <span class="input"><input type="button" class="btn_green" id="coupon_submit" value="提交保存" /><a href="<?php echo U('coupon/coupon');?>" class="btn_gray">返回</a></span></span>
            <div class="clear"></div>
        </div>
        
        <input type="hidden" id="type" name="type" value="<?php echo ($type); ?>">
        <input type="hidden" name="id" value="<?php echo ($coupon["id"]); ?>">
        <input type="hidden" id="do_action" value="<?php echo U('coupon/addcoupon');?>">
        <input type="hidden" id="coupon" value="<?php echo U('coupon/coupon');?>">
    </form>

			
			</div>
			</div>
</body>
</html>